
//
//  MaterialTableViewCell.m
//  BakeCenter
//
//  Created by lanou3g on 15/9/21.
//  Copyright (c) 2015年 Baked. All rights reserved.
//

#import "MaterialTableViewCell.h"

@implementation MaterialTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(50, 0, 200, 20)];
        self.nameLabel.font = [UIFont boldSystemFontOfSize:13];
        [self.contentView addSubview:self.nameLabel];
        
        self.weightLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.right - 100, 0, 100, 20)];
        self.weightLabel.font = [UIFont systemFontOfSize:13];
        self.weightLabel.textColor = [UIColor grayColor];
        [self.contentView addSubview:self.weightLabel];
        
        UIView *lineView = [[UIView alloc] initWithFrame:CGRectMake(10, self.nameLabel.bottom + 1, kScreenWidth - 20, 1)];
        lineView.backgroundColor = [UIColor colorWithWhite:0.9 alpha:1];
        [self.contentView addSubview:lineView];
        
    }
    return self;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
